{
 "cells": [
  {
   "metadata": {},
   "cell_type": "markdown",
   "source": [
    "安装官方提供的脚手架:  \n",
    "npm install -g yo generator-code vsce"
   ],
   "id": "15588e23f7810b94"
  },
  {
   "metadata": {},
   "cell_type": "markdown",
   "source": [
    "进入到目标目录,打开cmd控制窗口,执行指令用来生成项目:  \n",
    "yo code"
   ],
   "id": "737dd0c62b37fb4c"
  },
  {
   "metadata": {},
   "cell_type": "markdown",
   "source": [
    "选择合适的选项后生成初始项目,会提示使用vscode打开,使用vs code打开后,提示安装插件Extension Test Runner,安装插件完成  \n",
    "项目中,package.json是项目配置,在这里需要将vscode的版本降低些(yo code默认最新vscode版本,至少保证你当前的vscode版本不低于此)  \n",
    "extension.js是具体的代码逻辑"
   ],
   "id": "7ee20871d0c87fbf"
  },
  {
   "metadata": {},
   "cell_type": "markdown",
   "source": "在打开的vs code中,使用F5进入调试模式,在源码更改后,在调试界面使用Ctrl+R刷新逻辑,ctrl+shift+i进入网页查看",
   "id": "60023907474e086b"
  },
  {
   "metadata": {},
   "cell_type": "markdown",
   "source": [
    "插件发布:  \n",
    "发布前需要先更新下README.md  \n",
    "使用指令vsce package进行发布"
   ],
   "id": "1f8884835aae4d7e"
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 2
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython2",
   "version": "2.7.6"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
